/**
 * 连接数据库
 */
const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost:27017/advertise',{useNewUrlParser:true});
mongoose.connection.on('open',(err)=>{
    console.log('连接成功')
})
